placessiderbar: Fix sunny compilation
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Nov 2017 22:44:26 +0000 (23:44 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 13 Nov 2017 22:45:18 +0000 (23:45 +0100)
Make compilation not warn about unused variables when compiling with
HAVE_CLOUDPROVIDERS undefined.

gtk/gtkplacessidebar.c

index 247d1b4d2918d6b62acc311a9b14d59063da8b70..acd866f15887156c8a20c5464b411fbcb43530b7 100644 (file)
@@ -4367,10 +4367,10 @@ gtk_places_sidebar_dispose (GObject *object)
 static void
 gtk_places_sidebar_finalize (GObject *object)
 {
+#ifdef HAVE_CLOUDPROVIDERS
   GtkPlacesSidebar *sidebar;
 
   sidebar = GTK_PLACES_SIDEBAR (object);
-#ifdef HAVE_CLOUDPROVIDERS
   g_clear_object (&sidebar->cloud_manager);
 #endif